package com.sdw.message.service;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.sdw.message.dao.UserDao;
import com.sdw.message.pojo.User;

@Service("userService")
public class UserService {

	@Resource
	private UserDao userDao;
	
	public Iterable<User> getAllUser(){
		return this.userDao.getAllUser();
	}
	
	public boolean existUserName(String userName){
		return this.userDao.existUserName(userName);
	}
	
	public boolean validateUserNameAndPassword(String userName, String password){
		return this.userDao.validateUserNameAndPassword(userName, password);
	}
}
